 	<script src="../lokesh-lightbox2-a9e6453/js/jquery-1.7.2.min.js"></script>
	<script src="../lokesh-lightbox2-a9e6453/js/lightbox.js"></script>
	<script src="../js/js/jquery-1.7.2.min.js"> </script>
	<script src="../js/js/jquery-ui-1.8.21.custom.min.js"></script>
	<table>
	<tr>
	<td>
	<form action=<?="index.php?co=newProduct&addNewProduct&ca=".$_GET['ca']?> method="post">
			<input type="submit" name="Insert" value="Neues Produkt anlegen" align="right">
	</form>
	</td>
	<td>
	<form action=<?="index.php?co=contentPage&id=".$_GET['ca']?> method="post">
			<input type="submit" name="Insert" value="Beschreibung bearbeiten" align="right">
	</form>
	</td>
	</tr>
	</table>
		<style>
	#sortable { list-style-type: none; margin: 0; padding: 0; width: 60%;}
	#sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 18px; }
	#sortable li span { position: absolute; margin-left: -1.3em; background-color:#00ff00}
	#sortable div {background-color:#E0DEDF; }
	</style> 
	
		<script>
        $(document).ready(function(){
                $("#sortable" ).sortable({
                  update: function(event, ui) {
                    var updSort = $(this).sortable('toArray').toString();
                    
                    
                    $.ajax({
                      type: "POST",
                      url: "index.php?a=ajax&co=product&m=updateProductStructure",
                      data: {updSort : updSort},
                      success: function(data){
                        
                      }
                     })
                  }
                });
		$( "#sortable" ).disableSelection();
        });
	</script>
	
	
<p></p>
	<div class="demo">
		
	<div id="sortable">
	<?php 
	$aProducts= $this->aDisplayedContent['content'];
if(is_array($aProducts[0])){
	foreach($aProducts as $aProduct){
	?>		
	
	<div id="<?=$aProduct['pid']?>">
	<table width="100%">
	<tr>
	<td colspan="3" align="left" class="productName"><a href="index.php?co=product&ca=<?=$aProduct['category']?>&id=<?=$aProduct['pid']?>"><h3><?=$aProduct['name']?></h3></a></td>
	</tr>
	<tr>
	<td class="productMainimage" width="80px"><a href=../image/thumbs/<?=$aProduct['link']?> rel="lightbox" ><img src=../image/thumbs/<?=$aProduct['link']?> rel="lightbox" ></a></td>
	<td class="productShort_desc"><?=$aProduct['short_description']?></td>
	<td  class="deleteProduct" width="50px"><a href='index.php?co=product&method=deleteProduct&id=<?=$aProduct['pid']?>'><img src='../image/remove.png' align=right width=40px height=40px></a></td>
	</tr>
	<tr></tr>
	</table>
	<div style="background: #000000"></br></div>
	</div>

	
	
		
		
	<?php }} else{echo "$aProducts";}?>
	</div>
	</div>